#ifndef ANTLR_WRAPPER_HPP
#define	ANTLR_WRAPPER_HPP

#include <string>
#include "WhileLangLexer.h"
#include "WhileLangParser.h"
//#include "ast.h"

using namespace std;

class antlr_wrapper {
public:
	antlr_wrapper(string fileName);
	virtual ~antlr_wrapper();
	program* run();

private:
	pANTLR3_INPUT_STREAM input;
	pANTLR3_COMMON_TOKEN_STREAM tokens;
	pWhileLangLexer lex;
	pWhileLangParser parser;
};


arith* parse_as_arith(string code);

#endif	/* ANTLR_WRAPPER_HPP */




